package com.ruoyi.project.system.status.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 接收plc发送来的状态对象 tb_plc_status
 * 
 * @author kangjie
 * @date 2020-01-14
 */
public class TbPlcStatus extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @Excel(name = "序号")
    private String id;

    /** 模式 */
    @Excel(name = "模式")
    private int model;

    /** 是否开启 */
    @Excel(name = "是否开启")
    private int startStatus;

    /** 行车启动 */
    @Excel(name = "行车启动")
    private int count;

    /** plc返回错误信息 */
    @Excel(name = "plc返回错误信息")
    private String error;

    /** 行车放料完成 */
    @Excel(name = "行车放料完成")
    private int is_complete;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date create_time;

    private String startTime;

    private String endTime;

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setModel(int model) 
    {
        this.model = model;
    }

    public int getModel() 
    {
        return model;
    }
    public void setStartStatus(int startStatus) 
    {
        this.startStatus = startStatus;
    }

    public int getStartStatus() 
    {
        return startStatus;
    }
    public void setCount(int count) 
    {
        this.count = count;
    }

    public int getCount() 
    {
        return count;
    }
    public void setError(String error) 
    {
        this.error = error;
    }

    public String getError() 
    {
        return error;
    }
    public void setIs_complete(int is_complete) 
    {
        this.is_complete = is_complete;
    }

    public int getIs_complete() 
    {
        return is_complete;
    }
    public void setCreate_time(Date create_time) 
    {
        this.create_time = create_time;
    }

    public Date getCreate_time() 
    {
        return create_time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("model", getModel())
            .append("startStatus", getStartStatus())
            .append("count", getCount())
            .append("error", getError())
            .append("is_complete", getIs_complete())
            .append("create_time", getCreate_time())
            .toString();
    }
}
